<{include file="top.tpl"}>
<{if $webstate==1}><!--是否关闭系统-->
<script type="text/javascript">
function saveNewArticle(){
	xajax_newArticle(xajax.getFormValues('inputform'));
	return false;
}
</script>
<div id="mainWrapper">
<script type="text/javascript" language="javascript" src="/<{$virdir}>Scripts/messageform.js"></script>
<form name="inputform" method="post" action="javascript:void(null);">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="formbox">
  <tr>
    <td colspan="2" class="formbox-title">发表日志 [作者: <{$logininfo.1}>]</td>
  </tr>
  <tr>
    <td class="formbox-rowheader" width="140"><b>分类:</b></td>
    <td class="formbox-content">
      <select name="log_catid" id="log_catid">
        <option value="0">- 选择分类 -</option>
        <{foreach from=$categories item=category}>
        <option value="<{$category.id}>"><{$category.name}>[<{$category.articlenum}>]</option>
        <{/foreach}>
      </select>
      &nbsp;&nbsp;
      <b>模式:</b> 
      <select name="log_mode" id="log_mode">
        <option value="1">公共</option>
        <option value="2">隐藏</option>
        <option value="3">私人</option>
        <option value="4">草稿</option>
      </select>
      &nbsp;&nbsp;
      <input name="log_locked" type="checkbox" id="log_locked" value="true" /> 锁定
    </td>
  </tr>
  <tr>
    <td class="formbox-rowheader"><b>标题:</b></td>
    <td class="formbox-content">
      <input name="log_title" type="text" id="log_title" size="60" value="" maxlength="255" class="text" />&nbsp;&nbsp;
      <input name="log_selected" type="checkbox" id="log_selected" value="true" /> 推荐日志
      <input name="log_id" type="hidden" value="0" />
    </td>
  </tr>
  <tr>
    <td class="formbox-rowheader"><b>发表时间:</b></td>
    <td class="formbox-content">
      <input name="log_postTime" type="text" id="log_postTime" size="20" value="<{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}>" maxlength="20" class="text" />&nbsp;&nbsp&nbsp;<a href="javascript:setToCurrentTime()">更新发表时间</a>
    </td>
  </tr>
  <tr>
    <td class="formbox-rowheader" valign="top">
      <b>内容:</b><br /><br />
      <div class="panel-smilies">
        <div class="panel-smilies-title">表情图标</div>
        <div class="panel-smilies-content">
        
          <a href="javascript:insertSmilies('[smile]')"><img src="styles/default/images/smilies/icon_smile.gif" alt="[smile]" /></a>
          
          <a href="javascript:insertSmilies('[confused]')"><img src="styles/default/images/smilies/icon_confused.gif" alt="[confused]" /></a>
          
          <a href="javascript:insertSmilies('[cool]')"><img src="styles/default/images/smilies/icon_cool.gif" alt="[cool]" /></a>
          
          <a href="javascript:insertSmilies('[cry]')"><img src="styles/default/images/smilies/icon_cry.gif" alt="[cry]" /></a>
          <br />

          <a href="javascript:insertSmilies('[eek]')"><img src="styles/default/images/smilies/icon_eek.gif" alt="[eek]" /></a>
          
          <a href="javascript:insertSmilies('[angry]')"><img src="styles/default/images/smilies/icon_angry.gif" alt="[angry]" /></a>
          
          <a href="javascript:insertSmilies('[wink]')"><img src="styles/default/images/smilies/icon_wink.gif" alt="[wink]" /></a>
          
          <a href="javascript:insertSmilies('[sweat]')"><img src="styles/default/images/smilies/icon_sweat.gif" alt="[sweat]" /></a>
          <br />

          <a href="javascript:insertSmilies('[lol]')"><img src="styles/default/images/smilies/icon_lol.gif" alt="[lol]" /></a>
          
          <a href="javascript:insertSmilies('[stun]')"><img src="styles/default/images/smilies/icon_stun.gif" alt="[stun]" /></a>
          
          <a href="javascript:insertSmilies('[razz]')"><img src="styles/default/images/smilies/icon_razz.gif" alt="[razz]" /></a>
          
          <a href="javascript:insertSmilies('[redface]')"><img src="styles/default/images/smilies/icon_redface.gif" alt="[redface]" /></a>
          <br />

          <a href="javascript:insertSmilies('[rolleyes]')"><img src="styles/default/images/smilies/icon_rolleyes.gif" alt="[rolleyes]" /></a>
          
          <a href="javascript:insertSmilies('[sad]')"><img src="styles/default/images/smilies/icon_sad.gif" alt="[sad]" /></a>
          
          <a href="javascript:insertSmilies('[yes]')"><img src="styles/default/images/smilies/icon_yes.gif" alt="[yes]" /></a>
          
          <a href="javascript:insertSmilies('[no]')"><img src="styles/default/images/smilies/icon_no.gif" alt="[no]" /></a>
          <br />

          <a href="javascript:insertSmilies('[heart]')"><img src="styles/default/images/smilies/icon_heart.gif" alt="[heart]" /></a>
          
          <a href="javascript:insertSmilies('[star]')"><img src="styles/default/images/smilies/icon_star.gif" alt="[star]" /></a>
          
          <a href="javascript:insertSmilies('[music]')"><img src="styles/default/images/smilies/icon_music.gif" alt="[music]" /></a>
          
          <a href="javascript:insertSmilies('[idea]')"><img src="styles/default/images/smilies/icon_idea.gif" alt="[idea]" /></a>
          <br />

        </div>
      </div>
      <div style="font-weight: normal; text-align:left;">
        <input name="e_html" type="checkbox" value="true" /> 使用HTML<br />
        <input name="e_ubb" type="checkbox" value="true" checked="checked" />  UBB代码<br />
        <input name="e_autourl" type="checkbox" value="true" checked="checked" /> 转换链接<br />
        <input name="e_image" type="checkbox" value="true" checked="checked" /> 显示图片<br />
        <input name="e_media" type="checkbox" value="true" checked="checked" /> 显示媒体<br />
        <input name="e_smilies" type="checkbox" value="true" checked="checked" /> 表情图标
      </div>
    </td>
    <td class="formbox-content">
      <div style="padding-bottom:3px">
        <select name="font" onfocus="this.selectedIndex=0" onchange="chfont(this.options[this.selectedIndex].value)">
          <option value="" selected="selected">- Select Font -</option>
          <option value="Arial">Arial</option>
          <option value="Book Antiqua">Book Antiqua</option>
          <option value="Century Gothic">Century Gothic</option>
          <option value="Courier New">Courier New</option>
          <option value="Georgia">Georgia</option>
          <option value="Impact">Impact</option>
          <option value="Tahoma">Tahoma</option>
          <option value="Times New Roman">Times New Roman</option>
          <option value="Verdana">Verdana</option>
        </select>
        <select name="size" onfocus="this.selectedIndex=0" onchange="chsize(this.options[this.selectedIndex].value)">
          <option value="" selected="selected">- Size (pt) -</option>
          <option value="8">8</option>
          <option value="9">9</option>
          <option value="12">12</option>
          <option value="16">16</option>
          <option value="18">18</option>
          <option value="24">24</option>
          <option value="28">28</option>
          <option value="32">32</option>
          <option value="36">36</option>
        </select>
        <select name="color" onfocus="this.selectedIndex=0" onchange="chcolor(this.options[this.selectedIndex].value)">
          <option value="" selected="selected">- Color -</option>
          <option value="White" style="background-color:white;color:white;">White</option>
          <option value="Black" style="background-color:black;color:black;">Black</option>
          <option value="Red" style="background-color:red;color:red;">Red</option>
          <option value="Yellow" style="background-color:yellow;color:yellow;">Yellow</option>
          <option value="Pink" style="background-color:pink;color:pink;">Pink</option>
          <option value="Green" style="background-color:green;color:green;">Green</option>
          <option value="Orange" style="background-color:orange;color:orange;">Orange</option>
          <option value="Purple" style="background-color:purple;color:purple;">Purple</option>
          <option value="Blue" style="background-color:blue;color:blue;">Blue</option>
          <option value="Beige" style="background-color:beige;color:beige;">Beige</option>
          <option value="Brown" style="background-color:brown;color:brown;">Brown</option>
          <option value="Teal" style="background-color:teal;color:teal;">Teal</option>
          <option value="Navy" style="background-color:navy;color:navy;">Navy</option>
          <option value="Maroon" style="background-color:maroon;color:maroon;">Maroon</option>
          <option value="LimeGreen" style="background-color:limegreen;color:limegreen;">LimeGreen</option>
        </select>  &nbsp;
        <input type="radio" name="mode" value="1" onclick="chmode(1)" checked="checked" /> Basic
        <input type="radio" name="mode" value="0" onclick="chmode(0)" /> Prompt
      </div>
      <div>
        <a href="javascript:bold()"><img src="styles/default/images/ubbcode/bb_bold.gif" alt="Bold" /></a> <a href="javascript:italicize()"><img src="styles/default/images/ubbcode/bb_italicize.gif" alt="Italic" /></a> <a href="javascript:underline()"><img src="styles/default/images/ubbcode/bb_underline.gif" alt="Underline" /></a> <a href="javascript:strike()"><img src="styles/default/images/ubbcode/bb_strike.gif" alt="Strike Line" /></a> <a href="javascript:superscript()"><img src="styles/default/images/ubbcode/bb_sup.gif" alt="Insert Superscript" /></a> <a href="javascript:subscript()"><img src="styles/default/images/ubbcode/bb_sub.gif" alt="Insert Subscript" /></a> <a href="javascript:center()"><img src="styles/default/images/ubbcode/bb_center.gif" alt="Align Center" /></a> <a href="javascript:hyperlink()"><img src="styles/default/images/ubbcode/bb_url.gif" alt="Insert URL" /></a> <a href="javascript:email()"><img src="styles/default/images/ubbcode/bb_email.gif" alt="Insert Mail Link" /></a> <a href="javascript:image()"><img src="styles/default/images/ubbcode/bb_image.gif" alt="Insert Image" /></a> <a href="javascript:media()"><img src="styles/default/images/ubbcode/bb_media.gif" alt="Insert Flash" /></a> <a href="javascript:code()"><img src="styles/default/images/ubbcode/bb_code.gif" alt="Insert Code Block" /></a> <a href="javascript:quote()"><img src="styles/default/images/ubbcode/bb_quote.gif" alt="Insert Quote" /></a> <a href="javascript:list()"><img src="styles/default/images/ubbcode/bb_list.gif" alt="Insert List" /></a> <a href="javascript:seperator()"><img src="styles/default/images/ubbcode/bb_seperator.gif" alt="Insert Content Separator" /></a>
      </div>
      <div>
        <textarea name="message" rows="18" cols="64" id="message" style="width:100%" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);CtrlEnter();"></textarea>
      </div>
    </td>
  </tr>
  
  <tr class="formbox-content">
    <td align="right"><b>引用链接:</b></td>
    <td>
      <input name="log_trackbackurl" type="text" id="log_trackbackurl" size="60" value="" maxlength="255" class="text" />
    </td>
  </tr>
  <tr class="formbox-content">
    <td></td>
    <td>
      <input name="btnSubmit" type="button" id="btnSubmit" value="保存" onclick="CheckInputForm();" class="button" />
      <input name="btnReset" type="reset" id="btnReset" value="重置" class="button" />
      <input name="btnCancel" type="button" id="btnCancel" value="取消" onclick="window.history.back();" class="button" />
    </td>
  </tr>
</table>
</form>
</div>

<{/if}><!--是否关闭系统-->
<{include file="foot.tpl"}>